package itheima.TestThread.ThreadTest.MySynchronized;

public class Boy extends Thread{
    @Override
    public void run() {
        synchronized (Money.lock){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            Money.money=90000;
        }

    }
}
